<?php
namespace Home\Controller;
use Think\Controller;
class ArticleController extends Controller {
    public function index(){
        $this->display();
    }
    //文章详情页面
    public function articleDetail(){
        R('Index/getclass');
        $article=M('article')
                ->where(array('ar_id'=>I('id')))
                ->find();
        $this->assign("head_tittle",$article['ar_tittle']);
        $this->assign('article',$article);
        $this->display();
    }
}